package com.mailsystem.www.dao;


import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface BaseDao<T> {
    public void save(T entity, Connection conn);

    //删
    public void delete(T entity, Connection conn);

    //改
    public void update(T entity, Connection conn) throws SQLException;

    // 通过ID来查
    public T findbyid(Serializable id, Connection conn);

    //查询表的所有数据
    public List<T> findAll(Connection conn);

}
